package com.googlecode.webduff.methods;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.googlecode.webduff.MimeTyper;
import com.googlecode.webduff.WebDuffConfiguration;
import com.googlecode.webduff.exceptions.MethodResponseError;
import com.googlecode.webduff.locking.ResourceLocks;
import com.googlecode.webduff.store.WebdavStore;

import java.io.IOException;

public class DoNotImplemented implements MethodExecutor {

	private static org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(DoNotImplemented.class);
    
    public void init(WebDuffConfiguration servletConfig, MethodRegistry registry, WebdavStore store, ResourceLocks resourceLock, MimeTyper mimeTyper, ServletContext servletContext) {
		
	}

    public MethodResponse execute(HttpServletRequest req, HttpServletResponse resp) throws IOException, MethodResponseError {
        log.trace("-- " + req.getMethod());
        throw new MethodResponseError(HttpServletResponse.SC_NOT_IMPLEMENTED);
    }

}